package com.bingxue.edu.management.system.model.query;

import com.bingxue.edu.management.system.model.entity.Resource;
import com.bingxue.edu.framework.mybatis.query.Query;
import com.bingxue.edu.framework.mybatis.query.QueryType;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 资源查询条件
 *
 * @author panbo
 * @since 2024/07/21 22:36
 */
@Data
@Schema(description = "资源查询条件")
@TableRef(Resource.class)
public class ResourceQuery {

    @Schema(description = "资源模块")
    private String module;

    @Schema(description = "关键词")
    @Query(type = QueryType.LIKE, field = "name")
    @Query(type = QueryType.LIKE, field = "code")
    private String keyword;
}
